package xin.printk.android.module.user;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v7.widget.Toolbar;

import xin.printk.android.BasicActivity;
import xin.printk.android.R;


public class UserActivity extends BasicActivity {

    private CollapsingToolbarLayout mToolbarLayout;
    private Toolbar mToolbar;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user);
        mToolbar = findViewById(R.id.user_toolbar);
        setToolbar(mToolbar);
        setCanFinish(true);

        mToolbarLayout = findViewById(R.id.user_toolbar_layout);
        mToolbarLayout.setStatusBarScrimColor(getThemeColor());
        mToolbarLayout.setContentScrimColor(getThemeColor());
    }

    @Override
    protected void onResume() {
        super.onResume();
        mToolbar.setBackgroundColor(getResources().getColor(android.R.color.transparent));
    }
}
